package com.stwyj.sbd.entity.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 *<p>
 * user collection实体
 *</p>
 *
 * @author stwyj
 * @since 2018/12/3
 */
@Document(collection = "user")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserCollection {

    @Id
    private String id;

    private String name;

    @CreatedDate
    private Date createDate;
}
